<?
session_start();
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
include 'secret.php';


$script_name = $_SERVER['SCRIPT_NAME'];
$script_name = basename( $script_name );
$script_name = strtoupper($script_name);

if ( $script_name != "MAIN.PHP" ) {
	session_start();
	header('Content-type: text/html; charset=UTF-8');
	header( "pragma: no-cache" );
	header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
	header( "Cache-control: no-cache" );
}


?>
<span
	style='position:absolute;left:5px;top:5px'
>登録</span>
<form
	id="frm"
	action="dbaccces_new.php"
	method="post"
>
<?
//******************************************************************
//twitter_usernameとtwitter_iconの表示
//******************************************************************
?>

	<img 
		src="<?= $_SESSION['twitter_icon'] ?>"
		style='position:absolute;left:30px;top:32px'
	>
	<span
		style='position:absolute;left:130px;top:52px'>
		<?= $_SESSION['twitter_username'] ?>
	</span>

<?
//******************************************************************
//usernameの入力フィールド
//******************************************************************
?>
	<label 
		for="username"
		style='position:absolute;left:22px;top:82px'>
		user
	</label>
		<input
			name="username"
			id="username"
			type="text"
			style='position:absolute;left:130px;top:80px;width:300px;'
		>

<?
//******************************************************************
//emailの入力フィールド
//******************************************************************
?>

	<label 
		for="email"
		style='position:absolute;left:22px;top:112px'>
		email
	</label>
		<input
			id="email"
			name="email"
			type="text"
			style='position:absolute;left:130px;top:110px;width:300px;'
		>

<?
//******************************************************************
//登録ボタン
//******************************************************************
?>
		<input
			name="send_button"
			type="submit"
			value="登録"
			style='position:absolute;left:130px;top:140px;width:150px;'
		
		>


</form>

